Some Case Studies on Signal, Audio and Image Processing Using Matlab by Dr. Hedaya Mahmood Alasooly

Some Case Studies on Signal, Audio and Image Processing Using Matlab by Dr. Hedaya Mahmood Alasooly

Author:Dr. Hedaya Mahmood Alasooly
Language: eng
Format: epub
Publisher: BookRix


3.1.3 Step 3: Designing different types of filters

Different types of filters were designed and applied to filter the yt.

a) FIR low pass filter with cut off frequency = 500 Hz

First, FIR low pass filter with cut off frequency = 500 Hz is designed with the following commands and applied to signal yt, and the results are shown in Fig. 5. Then the filter is applied to the signal yn, and the results are shown in Fig. 6. Fig. 7 shows the frequency characteristics of the designed FIR filter

b = fir1(12,500/fs2)

a = 1

ytfir = filter(b,a,yt);

figure (5) ;

plot(t,ytfir);

ylabel('yt filtered with low pass FIR filter');

xlabel('t,sec');

figure(6);

ynfir = filter(b,a,yn);

plot(t,ynfir);

ylabel('yn filtered with low pass FIR filter');

xlabel('t,sec');

figure(7);

freqz(b,a,256,fs)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.